-- GENERATED SPELL FOR [Wrathtail Sea Witch] --


function spell0_3715(pUnit, Event) --@Lightning Blast,n/a--
pUnit:FullCastSpellOnTarget(8598,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3715', 3200, 1)
end

function spell1_3715(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(2691,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3715', 337, 1)
end

function Sorts_3715(pUnit, Event)
local choix_sorts_3715 = math.random(0, 1)
if choix_sorts_3715 == 0 then
pUnit:RegisterEvent('spell0_3715', 1, 1)
end
if choix_sorts_3715 == 1 then
pUnit:RegisterEvent('spell1_3715', 1, 1)
end
end

function mob3715_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3715', math.random(1500, 3000), 1)
end

function mob3715_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3715_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3715_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3715, 1, 'mob3715_Action')
RegisterUnitEvent(3715, 2, 'mob3715_Leave')
RegisterUnitEvent(3715, 3, 'mob3715_Kill')
RegisterUnitEvent(3715, 4, 'mob3715_Die')
